
import time
import serial
import serial.tools.list_ports 

port_list_discript = list(serial.tools.list_ports.comports())


port_list=[]

for i in port_list_discript:
    print(i)
    port_list.append(list(i)[0])
    

print(port_list)


print(__name__)




#ser = serial.Serial("COM1", 115200,interCharTimeout=0.1)
#ser = serial.serial("com1", 115200, timeout=2)



"""
ser.write("12345678".encode("UTF-8"))

while 1:
    readbuf = ser.read(100)
   # if(readbuf!=''):
    print(readbuf)


"""
